.class public Lrexsee/ebook/PageView;
.super Landroid/view/View;
.source "PageView.java"


# static fields
.field public static final EVENT_ONFIRSTPAGE:Ljava/lang/String; = "onFlipFirstPage"

.field public static final EVENT_ONFLIPED:Ljava/lang/String; = "onFliped"

.field public static final EVENT_ONLASTPAGE:Ljava/lang/String; = "onFlipLastPage"

.field private static final mColorMatrixArray:[F

.field private static final mMatrixArray:[F

.field private static mPageBack:Landroid/graphics/drawable/Drawable;


# instance fields
.field private final bezier:[Lrexsee/ebook/Bezier;

.field private loadingIndex:I

.field private loadingNull:Z

.field public final mBrowser:Lrexsee/core/browser/Browser;

.field private final mCorner:Landroid/graphics/Point;

.field private mCurPageBitmap:Landroid/graphics/Bitmap;

.field private mData:Ljava/lang/String;

.field private final mId:Ljava/lang/String;

.field private mLoadingPageBitmap:Landroid/graphics/Bitmap;

.field private mNextPageBitmap:Landroid/graphics/Bitmap;

.field private final mOnTouchListener:Landroid/view/View$OnTouchListener;

.field private mPageFactory:Lrexsee/ebook/PageFactory;

.field private mPageIndex:I

.field private final mPath:Landroid/graphics/Path;

.field private final mScroller:Landroid/widget/Scroller;

.field public final mStyle:Lrexsee/core/style/StyleSheet;

.field private final mTouch:Landroid/graphics/PointF;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 31
    const/16 v0, 0x14

    new-array v0, v0, [F

    fill-array-data v0, :array_0

    sput-object v0, Lrexsee/ebook/PageView;->mColorMatrixArray:[F

    .line 32
    const/16 v0, 0x9

    new-array v0, v0, [F

    fill-array-data v0, :array_1

    sput-object v0, Lrexsee/ebook/PageView;->mMatrixArray:[F

    .line 25
    return-void

    .line 31
    nop

    :array_0
    .array-data 4
        0x3f0ccccd    # 0.55f
        0x0
        0x0
        0x0
        0x42a00000    # 80.0f
        0x0
        0x3f0ccccd    # 0.55f
        0x0
        0x0
        0x42a00000    # 80.0f
        0x0
        0x0
        0x3f0ccccd    # 0.55f
        0x0
        0x42a00000    # 80.0f
        0x0
        0x0
        0x0
        0x3e4ccccd    # 0.2f
        0x0
    .end array-data

    .line 32
    :array_1
    .array-data 4
        0x0
        0x0
        0x0
        0x0
        0x0
        0x0
        0x0
        0x0
        0x3f800000    # 1.0f
    .end array-data
.end method

.method public constructor <init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;)V
    .locals 6
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "id"    # Ljava/lang/String;
    .param p3, "style"    # Ljava/lang/String;

    .prologue
    const v5, 0x3c23d70a    # 0.01f

    const/4 v1, 0x0

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 58
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 39
    new-instance v0, Landroid/graphics/PointF;

    invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V

    iput-object v0, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    .line 40
    new-instance v0, Landroid/graphics/Point;

    invoke-direct {v0}, Landroid/graphics/Point;-><init>()V

    iput-object v0, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    .line 42
    iput-boolean v4, p0, Lrexsee/ebook/PageView;->loadingNull:Z

    .line 43
    const/4 v0, -0x1

    iput v0, p0, Lrexsee/ebook/PageView;->loadingIndex:I

    .line 44
    iput-object v1, p0, Lrexsee/ebook/PageView;->mLoadingPageBitmap:Landroid/graphics/Bitmap;

    .line 45
    iput-object v1, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    .line 46
    iput-object v1, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    .line 47
    iput v3, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    .line 303
    new-instance v0, Lrexsee/ebook/PageView$1;

    invoke-direct {v0, p0}, Lrexsee/ebook/PageView$1;-><init>(Lrexsee/ebook/PageView;)V

    iput-object v0, p0, Lrexsee/ebook/PageView;->mOnTouchListener:Landroid/view/View$OnTouchListener;

    .line 60
    iput-object p1, p0, Lrexsee/ebook/PageView;->mBrowser:Lrexsee/core/browser/Browser;

    .line 61
    iput-object p2, p0, Lrexsee/ebook/PageView;->mId:Ljava/lang/String;

    .line 62
    new-instance v0, Lrexsee/core/style/StyleSheet;

    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lrexsee/core/style/StyleSheet;-><init>(Landroid/content/Context;)V

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "line-height:150%;text-align:left; text-vertical-align:top;"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    move-result-object v0

    iput-object v0, p0, Lrexsee/ebook/PageView;->mStyle:Lrexsee/core/style/StyleSheet;

    .line 63
    iget-object v0, p0, Lrexsee/ebook/PageView;->mStyle:Lrexsee/core/style/StyleSheet;

    iget-object v0, v0, Lrexsee/core/style/StyleSheet;->background_color:Ljava/lang/String;

    invoke-static {p1, v0}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    sput-object v0, Lrexsee/ebook/PageView;->mPageBack:Landroid/graphics/drawable/Drawable;

    .line 65
    iget-object v0, p0, Lrexsee/ebook/PageView;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "onFlipFirstPage"

    invoke-virtual {v0, v1}, Lrexsee/core/browser/clazz/EventList;->add(Ljava/lang/String;)V

    .line 66
    iget-object v0, p0, Lrexsee/ebook/PageView;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "onFlipLastPage"

    invoke-virtual {v0, v1}, Lrexsee/core/browser/clazz/EventList;->add(Ljava/lang/String;)V

    .line 67
    iget-object v0, p0, Lrexsee/ebook/PageView;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "onFliped"

    invoke-virtual {v0, v1}, Lrexsee/core/browser/clazz/EventList;->add(Ljava/lang/String;)V

    .line 69
    const/4 v0, 0x2

    new-array v0, v0, [Lrexsee/ebook/Bezier;

    iput-object v0, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    .line 70
    iget-object v0, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    new-instance v1, Lrexsee/ebook/Bezier;

    invoke-direct {v1}, Lrexsee/ebook/Bezier;-><init>()V

    aput-object v1, v0, v3

    .line 71
    iget-object v0, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    new-instance v1, Lrexsee/ebook/Bezier;

    invoke-direct {v1}, Lrexsee/ebook/Bezier;-><init>()V

    aput-object v1, v0, v4

    .line 72
    iget-object v0, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iput v3, v0, Landroid/graphics/Point;->x:I

    .line 73
    iget-object v0, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iput v3, v0, Landroid/graphics/Point;->y:I

    .line 74
    new-instance v0, Landroid/graphics/Path;

    invoke-direct {v0}, Landroid/graphics/Path;-><init>()V

    iput-object v0, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    .line 75
    new-instance v0, Landroid/widget/Scroller;

    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/Scroller;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/ebook/PageView;->mScroller:Landroid/widget/Scroller;

    .line 76
    iget-object v0, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iput v5, v0, Landroid/graphics/PointF;->x:F

    .line 77
    iget-object v0, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iput v5, v0, Landroid/graphics/PointF;->y:F

    .line 79
    invoke-virtual {p0, v4}, Lrexsee/ebook/PageView;->setClickable(Z)V

    .line 80
    iget-object v0, p0, Lrexsee/ebook/PageView;->mOnTouchListener:Landroid/view/View$OnTouchListener;

    invoke-virtual {p0, v0}, Lrexsee/ebook/PageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 82
    return-void
.end method

.method static synthetic access$0(Lrexsee/ebook/PageView;)Lrexsee/ebook/PageFactory;
    .locals 1

    .prologue
    .line 54
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/ebook/PageView;)I
    .locals 1

    .prologue
    .line 43
    iget v0, p0, Lrexsee/ebook/PageView;->loadingIndex:I

    return v0
.end method

.method static synthetic access$2(Lrexsee/ebook/PageView;)Landroid/graphics/Point;
    .locals 1

    .prologue
    .line 40
    iget-object v0, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    return-object v0
.end method

.method static synthetic access$3(Lrexsee/ebook/PageView;)I
    .locals 1

    .prologue
    .line 47
    iget v0, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    return v0
.end method

.method static synthetic access$4(Lrexsee/ebook/PageView;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 51
    iget-object v0, p0, Lrexsee/ebook/PageView;->mId:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lrexsee/ebook/PageView;)Landroid/graphics/PointF;
    .locals 1

    .prologue
    .line 39
    iget-object v0, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    return-object v0
.end method

.method static synthetic access$6(Lrexsee/ebook/PageView;Landroid/graphics/Bitmap;)V
    .locals 0

    .prologue
    .line 45
    iput-object p1, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    return-void
.end method

.method static synthetic access$7(Lrexsee/ebook/PageView;Landroid/graphics/Bitmap;)V
    .locals 0

    .prologue
    .line 46
    iput-object p1, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    return-void
.end method

.method static synthetic access$8(Lrexsee/ebook/PageView;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 84
    invoke-direct {p0, p1, p2}, Lrexsee/ebook/PageView;->error(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic access$9(Lrexsee/ebook/PageView;I)V
    .locals 0

    .prologue
    .line 47
    iput p1, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    return-void
.end method

.method private calcPoints()V
    .locals 15

    .prologue
    const/4 v14, 0x0

    const/high16 v13, 0x40800000    # 4.0f

    const/high16 v12, 0x40000000    # 2.0f

    const/4 v11, 0x1

    const/4 v10, 0x0

    .line 371
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v4

    .line 372
    .local v4, "mWidth":I
    new-instance v3, Landroid/graphics/PointF;

    invoke-direct {v3}, Landroid/graphics/PointF;-><init>()V

    .line 373
    .local v3, "mMiddle":Landroid/graphics/PointF;
    iget-object v5, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->x:F

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->x:I

    int-to-float v6, v6

    add-float/2addr v5, v6

    div-float/2addr v5, v12

    iput v5, v3, Landroid/graphics/PointF;->x:F

    .line 374
    iget-object v5, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->y:F

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->y:I

    int-to-float v6, v6

    add-float/2addr v5, v6

    div-float/2addr v5, v12

    iput v5, v3, Landroid/graphics/PointF;->y:F

    .line 375
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v6, v3, Landroid/graphics/PointF;->x:F

    iget-object v7, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v7, v7, Landroid/graphics/Point;->y:I

    int-to-float v7, v7

    iget v8, v3, Landroid/graphics/PointF;->y:F

    sub-float/2addr v7, v8

    iget-object v8, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v8, v8, Landroid/graphics/Point;->y:I

    int-to-float v8, v8

    iget v9, v3, Landroid/graphics/PointF;->y:F

    sub-float/2addr v8, v9

    mul-float/2addr v7, v8

    iget-object v8, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v8, v8, Landroid/graphics/Point;->x:I

    int-to-float v8, v8

    iget v9, v3, Landroid/graphics/PointF;->x:F

    sub-float/2addr v8, v9

    div-float/2addr v7, v8

    sub-float/2addr v6, v7

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 376
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->y:I

    int-to-float v6, v6

    iput v6, v5, Landroid/graphics/PointF;->y:F

    .line 377
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v11

    iget-object v5, v5, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->x:I

    int-to-float v6, v6

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 378
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v11

    iget-object v5, v5, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v6, v3, Landroid/graphics/PointF;->y:F

    iget-object v7, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v7, v7, Landroid/graphics/Point;->x:I

    int-to-float v7, v7

    iget v8, v3, Landroid/graphics/PointF;->x:F

    sub-float/2addr v7, v8

    iget-object v8, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v8, v8, Landroid/graphics/Point;->x:I

    int-to-float v8, v8

    iget v9, v3, Landroid/graphics/PointF;->x:F

    sub-float/2addr v8, v9

    mul-float/2addr v7, v8

    iget-object v8, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v8, v8, Landroid/graphics/Point;->y:I

    int-to-float v8, v8

    iget v9, v3, Landroid/graphics/PointF;->y:F

    sub-float/2addr v8, v9

    div-float/2addr v7, v8

    sub-float/2addr v6, v7

    iput v6, v5, Landroid/graphics/PointF;->y:F

    .line 379
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v6, v6, v10

    iget-object v6, v6, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->x:F

    iget-object v7, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v7, v7, Landroid/graphics/Point;->x:I

    int-to-float v7, v7

    iget-object v8, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v8, v8, v10

    iget-object v8, v8, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v8, v8, Landroid/graphics/PointF;->x:F

    sub-float/2addr v7, v8

    div-float/2addr v7, v12

    sub-float/2addr v6, v7

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 380
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->y:I

    int-to-float v6, v6

    iput v6, v5, Landroid/graphics/PointF;->y:F

    .line 382
    iget-object v5, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->x:F

    cmpl-float v5, v5, v14

    if-lez v5, :cond_2

    iget-object v5, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->x:F

    int-to-float v6, v4

    cmpg-float v5, v5, v6

    if-gez v5, :cond_2

    .line 383
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->x:F

    cmpg-float v5, v5, v14

    if-ltz v5, :cond_0

    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->x:F

    int-to-float v6, v4

    cmpl-float v5, v5, v6

    if-lez v5, :cond_2

    .line 384
    :cond_0
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->x:F

    cmpg-float v5, v5, v14

    if-gez v5, :cond_1

    .line 385
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    int-to-float v6, v4

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v10

    iget-object v7, v7, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->x:F

    sub-float/2addr v6, v7

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 387
    :cond_1
    iget-object v5, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v5, v5, Landroid/graphics/Point;->x:I

    int-to-float v5, v5

    iget-object v6, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->x:F

    sub-float/2addr v5, v6

    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v0

    .line 388
    .local v0, "f1":F
    int-to-float v5, v4

    mul-float/2addr v5, v0

    iget-object v6, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v6, v6, v10

    iget-object v6, v6, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->x:F

    div-float v1, v5, v6

    .line 389
    .local v1, "f2":F
    iget-object v5, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->x:I

    int-to-float v6, v6

    sub-float/2addr v6, v1

    invoke-static {v6}, Ljava/lang/Math;->abs(F)F

    move-result v6

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 390
    iget-object v5, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v5, v5, Landroid/graphics/Point;->x:I

    int-to-float v5, v5

    iget-object v6, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->x:F

    sub-float/2addr v5, v6

    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v5

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->y:I

    int-to-float v6, v6

    iget-object v7, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->y:F

    sub-float/2addr v6, v7

    invoke-static {v6}, Ljava/lang/Math;->abs(F)F

    move-result v6

    mul-float/2addr v5, v6

    div-float v2, v5, v0

    .line 391
    .local v2, "f3":F
    iget-object v5, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->y:I

    int-to-float v6, v6

    sub-float/2addr v6, v2

    invoke-static {v6}, Ljava/lang/Math;->abs(F)F

    move-result v6

    iput v6, v5, Landroid/graphics/PointF;->y:F

    .line 392
    iget-object v5, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->x:F

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->x:I

    int-to-float v6, v6

    add-float/2addr v5, v6

    div-float/2addr v5, v12

    iput v5, v3, Landroid/graphics/PointF;->x:F

    .line 393
    iget-object v5, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->y:F

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->y:I

    int-to-float v6, v6

    add-float/2addr v5, v6

    div-float/2addr v5, v12

    iput v5, v3, Landroid/graphics/PointF;->y:F

    .line 394
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v6, v3, Landroid/graphics/PointF;->x:F

    iget-object v7, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v7, v7, Landroid/graphics/Point;->y:I

    int-to-float v7, v7

    iget v8, v3, Landroid/graphics/PointF;->y:F

    sub-float/2addr v7, v8

    iget-object v8, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v8, v8, Landroid/graphics/Point;->y:I

    int-to-float v8, v8

    iget v9, v3, Landroid/graphics/PointF;->y:F

    sub-float/2addr v8, v9

    mul-float/2addr v7, v8

    iget-object v8, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v8, v8, Landroid/graphics/Point;->x:I

    int-to-float v8, v8

    iget v9, v3, Landroid/graphics/PointF;->x:F

    sub-float/2addr v8, v9

    div-float/2addr v7, v8

    sub-float/2addr v6, v7

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 395
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->y:I

    int-to-float v6, v6

    iput v6, v5, Landroid/graphics/PointF;->y:F

    .line 396
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v11

    iget-object v5, v5, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->x:I

    int-to-float v6, v6

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 397
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v11

    iget-object v5, v5, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v6, v3, Landroid/graphics/PointF;->y:F

    iget-object v7, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v7, v7, Landroid/graphics/Point;->x:I

    int-to-float v7, v7

    iget v8, v3, Landroid/graphics/PointF;->x:F

    sub-float/2addr v7, v8

    iget-object v8, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v8, v8, Landroid/graphics/Point;->x:I

    int-to-float v8, v8

    iget v9, v3, Landroid/graphics/PointF;->x:F

    sub-float/2addr v8, v9

    mul-float/2addr v7, v8

    iget-object v8, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v8, v8, Landroid/graphics/Point;->y:I

    int-to-float v8, v8

    iget v9, v3, Landroid/graphics/PointF;->y:F

    sub-float/2addr v8, v9

    div-float/2addr v7, v8

    sub-float/2addr v6, v7

    iput v6, v5, Landroid/graphics/PointF;->y:F

    .line 398
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v6, v6, v10

    iget-object v6, v6, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->x:F

    iget-object v7, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v7, v7, Landroid/graphics/Point;->x:I

    int-to-float v7, v7

    iget-object v8, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v8, v8, v10

    iget-object v8, v8, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v8, v8, Landroid/graphics/PointF;->x:F

    sub-float/2addr v7, v8

    div-float/2addr v7, v12

    sub-float/2addr v6, v7

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 401
    .end local v0    # "f1":F
    .end local v1    # "f2":F
    .end local v2    # "f3":F
    :cond_2
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v11

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v6, v6, Landroid/graphics/Point;->x:I

    int-to-float v6, v6

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 402
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v11

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v6, v6, v11

    iget-object v6, v6, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->y:F

    iget-object v7, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v7, v7, Landroid/graphics/Point;->y:I

    int-to-float v7, v7

    iget-object v8, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v8, v8, v11

    iget-object v8, v8, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v8, v8, Landroid/graphics/PointF;->y:F

    sub-float/2addr v7, v8

    div-float/2addr v7, v12

    sub-float/2addr v6, v7

    iput v6, v5, Landroid/graphics/PointF;->y:F

    .line 403
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v6, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v10

    iget-object v7, v7, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget-object v8, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v8, v8, v10

    iget-object v8, v8, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget-object v9, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v9, v9, v11

    iget-object v9, v9, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    invoke-direct {p0, v6, v7, v8, v9}, Lrexsee/ebook/PageView;->getCross(Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;)Landroid/graphics/PointF;

    move-result-object v6

    iput-object v6, v5, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    .line 404
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v11

    iget-object v6, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v11

    iget-object v7, v7, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget-object v8, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v8, v8, v10

    iget-object v8, v8, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget-object v9, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v9, v9, v11

    iget-object v9, v9, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    invoke-direct {p0, v6, v7, v8, v9}, Lrexsee/ebook/PageView;->getCross(Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;)Landroid/graphics/PointF;

    move-result-object v6

    iput-object v6, v5, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    .line 405
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v6, v6, v10

    iget-object v6, v6, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->x:F

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v10

    iget-object v7, v7, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->x:F

    mul-float/2addr v7, v12

    add-float/2addr v6, v7

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v10

    iget-object v7, v7, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->x:F

    add-float/2addr v6, v7

    div-float/2addr v6, v13

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 406
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v10

    iget-object v5, v5, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v6, v6, v10

    iget-object v6, v6, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->y:F

    mul-float/2addr v6, v12

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v10

    iget-object v7, v7, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->y:F

    add-float/2addr v6, v7

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v10

    iget-object v7, v7, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->y:F

    add-float/2addr v6, v7

    div-float/2addr v6, v13

    iput v6, v5, Landroid/graphics/PointF;->y:F

    .line 407
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v11

    iget-object v5, v5, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v6, v6, v11

    iget-object v6, v6, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->x:F

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v11

    iget-object v7, v7, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->x:F

    mul-float/2addr v7, v12

    add-float/2addr v6, v7

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v11

    iget-object v7, v7, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->x:F

    add-float/2addr v6, v7

    div-float/2addr v6, v13

    iput v6, v5, Landroid/graphics/PointF;->x:F

    .line 408
    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v5, v5, v11

    iget-object v5, v5, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    iget-object v6, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v6, v6, v11

    iget-object v6, v6, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v6, v6, Landroid/graphics/PointF;->y:F

    mul-float/2addr v6, v12

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v11

    iget-object v7, v7, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->y:F

    add-float/2addr v6, v7

    iget-object v7, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    aget-object v7, v7, v11

    iget-object v7, v7, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    iget v7, v7, Landroid/graphics/PointF;->y:F

    add-float/2addr v6, v7

    div-float/2addr v6, v13

    iput v6, v5, Landroid/graphics/PointF;->y:F

    .line 409
    return-void
.end method

.method private drawCurrentBackArea(Landroid/graphics/Canvas;)V
    .locals 30
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 434
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    move-object/from16 v26, v0

    if-nez v26, :cond_0

    .line 503
    :goto_0
    return-void

    .line 436
    :cond_0
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v27, v0

    add-float v26, v26, v27

    move/from16 v0, v26

    float-to-int v0, v0

    move/from16 v26, v0

    div-int/lit8 v14, v26, 0x2

    .line 437
    .local v14, "i":I
    move v0, v14

    int-to-float v0, v0

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v27, v0

    sub-float v26, v26, v27

    invoke-static/range {v26 .. v26}, Ljava/lang/Math;->abs(F)F

    move-result v9

    .line 438
    .local v9, "f1":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x1

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x1

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    add-float v26, v26, v27

    move/from16 v0, v26

    float-to-int v0, v0

    move/from16 v26, v0

    div-int/lit8 v15, v26, 0x2

    .line 439
    .local v15, "i1":I
    move v0, v15

    int-to-float v0, v0

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x1

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    sub-float v26, v26, v27

    invoke-static/range {v26 .. v26}, Ljava/lang/Math;->abs(F)F

    move-result v10

    .line 440
    .local v10, "f2":F
    invoke-static {v9, v10}, Ljava/lang/Math;->min(FF)F

    move-result v11

    .line 441
    .local v11, "f3":F
    new-instance v24, Landroid/graphics/Path;

    invoke-direct/range {v24 .. v24}, Landroid/graphics/Path;-><init>()V

    .line 442
    .local v24, "path":Landroid/graphics/Path;
    invoke-virtual/range {v24 .. v24}, Landroid/graphics/Path;->reset()V

    .line 443
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x1

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x1

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    move-object/from16 v0, v24

    move/from16 v1, v26

    move/from16 v2, v27

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    .line 444
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    move-object/from16 v0, v24

    move/from16 v1, v26

    move/from16 v2, v27

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 445
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    move-object/from16 v0, v24

    move/from16 v1, v26

    move/from16 v2, v27

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 446
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    move-object/from16 v0, v24

    move/from16 v1, v26

    move/from16 v2, v27

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 447
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x1

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x1

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    move-object/from16 v0, v24

    move/from16 v1, v26

    move/from16 v2, v27

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 448
    invoke-virtual/range {v24 .. v24}, Landroid/graphics/Path;->close()V

    .line 452
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/Point;->x:I

    move/from16 v26, v0

    if-nez v26, :cond_1

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/Point;->y:I

    move/from16 v26, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v27

    move/from16 v0, v26

    move/from16 v1, v27

    if-eq v0, v1, :cond_2

    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/Point;->x:I

    move/from16 v26, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v27

    move/from16 v0, v26

    move/from16 v1, v27

    if-ne v0, v1, :cond_3

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/Point;->y:I

    move/from16 v26, v0

    if-nez v26, :cond_3

    :cond_2
    const/16 v26, 0x1

    move/from16 v19, v26

    .line 453
    .local v19, "mIsRTandLB":Z
    :goto_1
    new-instance v23, Lrexsee/ebook/PageDrawables;

    invoke-direct/range {v23 .. v23}, Lrexsee/ebook/PageDrawables;-><init>()V

    .line 454
    .local v23, "pageDrawables":Lrexsee/ebook/PageDrawables;
    if-eqz v19, :cond_4

    .line 455
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    const/high16 v27, 0x3f800000    # 1.0f

    sub-float v26, v26, v27

    move/from16 v0, v26

    float-to-int v0, v0

    move/from16 v16, v0

    .line 456
    .local v16, "left":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    add-float v26, v26, v11

    const/high16 v27, 0x3f800000    # 1.0f

    add-float v26, v26, v27

    move/from16 v0, v26

    float-to-int v0, v0

    move/from16 v25, v0

    .line 457
    .local v25, "right":I
    move-object/from16 v0, v23

    iget-object v0, v0, Lrexsee/ebook/PageDrawables;->folder_LR:Landroid/graphics/drawable/GradientDrawable;

    move-object/from16 v18, v0

    .line 463
    .local v18, "mFolderShadowDrawable":Landroid/graphics/drawable/GradientDrawable;
    :goto_2
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 465
    :try_start_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    move-object/from16 v26, v0

    move-object/from16 v0, p1

    move-object/from16 v1, v26

    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    .line 469
    :goto_3
    :try_start_2
    sget-object v26, Landroid/graphics/Region$Op;->INTERSECT:Landroid/graphics/Region$Op;

    move-object/from16 v0, p1

    move-object/from16 v1, v24

    move-object/from16 v2, v26

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;Landroid/graphics/Region$Op;)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 473
    :goto_4
    :try_start_3
    new-instance v6, Landroid/graphics/ColorMatrix;

    invoke-direct {v6}, Landroid/graphics/ColorMatrix;-><init>()V

    .line 474
    .local v6, "cm":Landroid/graphics/ColorMatrix;
    sget-object v26, Lrexsee/ebook/PageView;->mColorMatrixArray:[F

    move-object v0, v6

    move-object/from16 v1, v26

    invoke-virtual {v0, v1}, Landroid/graphics/ColorMatrix;->set([F)V

    .line 475
    new-instance v22, Landroid/graphics/Paint;

    invoke-direct/range {v22 .. v22}, Landroid/graphics/Paint;-><init>()V

    .line 476
    .local v22, "mPaint":Landroid/graphics/Paint;
    sget-object v26, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    move-object/from16 v0, v22

    move-object/from16 v1, v26

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 477
    new-instance v26, Landroid/graphics/ColorMatrixColorFilter;

    move-object/from16 v0, v26

    move-object v1, v6

    invoke-direct {v0, v1}, Landroid/graphics/ColorMatrixColorFilter;-><init>(Landroid/graphics/ColorMatrix;)V

    move-object/from16 v0, v22

    move-object/from16 v1, v26

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;

    .line 479
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/Point;->x:I

    move/from16 v26, v0

    move/from16 v0, v26

    int-to-float v0, v0

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v27, v0

    sub-float v26, v26, v27

    move/from16 v0, v26

    float-to-double v0, v0

    move-wide/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v28, v0

    const/16 v29, 0x1

    aget-object v28, v28, v29

    move-object/from16 v0, v28

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v28, v0

    move-object/from16 v0, v28

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v28, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v29, v0

    move-object/from16 v0, v29

    iget v0, v0, Landroid/graphics/Point;->y:I

    move/from16 v29, v0

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    sub-float v28, v28, v29

    move/from16 v0, v28

    float-to-double v0, v0

    move-wide/from16 v28, v0

    invoke-static/range {v26 .. v29}, Ljava/lang/Math;->hypot(DD)D

    move-result-wide v26

    move-wide/from16 v0, v26

    double-to-float v0, v0

    move v7, v0

    .line 480
    .local v7, "dis":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/Point;->x:I

    move/from16 v26, v0

    move/from16 v0, v26

    int-to-float v0, v0

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v27, v0

    sub-float v26, v26, v27

    div-float v12, v26, v7

    .line 481
    .local v12, "f8":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x1

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/Point;->y:I

    move/from16 v27, v0

    move/from16 v0, v27

    int-to-float v0, v0

    move/from16 v27, v0

    sub-float v26, v26, v27

    div-float v13, v26, v7

    .line 482
    .local v13, "f9":F
    sget-object v5, Lrexsee/ebook/PageView;->mMatrixArray:[F

    .line 483
    .local v5, "array":[F
    const/16 v26, 0x0

    const/high16 v27, 0x3f800000    # 1.0f

    const/high16 v28, 0x40000000    # 2.0f

    mul-float v28, v28, v13

    mul-float v28, v28, v13

    sub-float v27, v27, v28

    aput v27, v5, v26

    .line 484
    const/16 v26, 0x1

    const/high16 v27, 0x40000000    # 2.0f

    mul-float v27, v27, v12

    mul-float v27, v27, v13

    aput v27, v5, v26

    .line 485
    const/16 v26, 0x3

    const/16 v27, 0x1

    aget v27, v5, v27

    aput v27, v5, v26

    .line 486
    const/16 v26, 0x4

    const/high16 v27, 0x3f800000    # 1.0f

    const/high16 v28, 0x40000000    # 2.0f

    mul-float v28, v28, v12

    mul-float v28, v28, v12

    sub-float v27, v27, v28

    aput v27, v5, v26

    .line 487
    new-instance v20, Landroid/graphics/Matrix;

    invoke-direct/range {v20 .. v20}, Landroid/graphics/Matrix;-><init>()V

    .line 488
    .local v20, "mMatrix":Landroid/graphics/Matrix;
    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Matrix;->reset()V

    .line 489
    move-object/from16 v0, v20

    move-object v1, v5

    invoke-virtual {v0, v1}, Landroid/graphics/Matrix;->setValues([F)V

    .line 490
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move/from16 v0, v26

    neg-float v0, v0

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    move/from16 v0, v27

    neg-float v0, v0

    move/from16 v27, v0

    move-object/from16 v0, v20

    move/from16 v1, v26

    move/from16 v2, v27

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->preTranslate(FF)Z

    .line 491
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    move-object/from16 v0, v20

    move/from16 v1, v26

    move/from16 v2, v27

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->postTranslate(FF)Z

    .line 492
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    move-object/from16 v26, v0

    move-object/from16 v0, p1

    move-object/from16 v1, v26

    move-object/from16 v2, v20

    move-object/from16 v3, v22

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Matrix;Landroid/graphics/Paint;)V

    .line 493
    const/16 v26, 0x0

    move-object/from16 v0, v22

    move-object/from16 v1, v26

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;

    .line 494
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/Point;->x:I

    move/from16 v27, v0

    move/from16 v0, v27

    int-to-float v0, v0

    move/from16 v27, v0

    sub-float v26, v26, v27

    move/from16 v0, v26

    float-to-double v0, v0

    move-wide/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v28, v0

    const/16 v29, 0x1

    aget-object v28, v28, v29

    move-object/from16 v0, v28

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v28, v0

    move-object/from16 v0, v28

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v28, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v29, v0

    move-object/from16 v0, v29

    iget v0, v0, Landroid/graphics/Point;->y:I

    move/from16 v29, v0

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    sub-float v28, v28, v29

    move/from16 v0, v28

    float-to-double v0, v0

    move-wide/from16 v28, v0

    invoke-static/range {v26 .. v29}, Ljava/lang/Math;->atan2(DD)D

    move-result-wide v26

    invoke-static/range {v26 .. v27}, Ljava/lang/Math;->toDegrees(D)D

    move-result-wide v26

    move-wide/from16 v0, v26

    double-to-float v0, v0

    move/from16 v17, v0

    .line 495
    .local v17, "mDegrees":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    move-object/from16 v0, p1

    move/from16 v1, v17

    move/from16 v2, v26

    move/from16 v3, v27

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Canvas;->rotate(FFF)V

    .line 496
    invoke-virtual/range {p0 .. p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v26

    move/from16 v0, v26

    int-to-double v0, v0

    move-wide/from16 v26, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v28

    move/from16 v0, v28

    int-to-double v0, v0

    move-wide/from16 v28, v0

    invoke-static/range {v26 .. v29}, Ljava/lang/Math;->hypot(DD)D

    move-result-wide v26

    move-wide/from16 v0, v26

    double-to-float v0, v0

    move/from16 v21, v0

    .line 497
    .local v21, "mMaxLength":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v26, v0

    move/from16 v0, v26

    float-to-int v0, v0

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    add-float v27, v27, v21

    move/from16 v0, v27

    float-to-int v0, v0

    move/from16 v27, v0

    move-object/from16 v0, v18

    move/from16 v1, v16

    move/from16 v2, v26

    move/from16 v3, v25

    move/from16 v4, v27

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/drawable/GradientDrawable;->setBounds(IIII)V

    .line 498
    move-object/from16 v0, v18

    move-object/from16 v1, p1

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/GradientDrawable;->draw(Landroid/graphics/Canvas;)V

    .line 499
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    goto/16 :goto_0

    .line 500
    .end local v5    # "array":[F
    .end local v6    # "cm":Landroid/graphics/ColorMatrix;
    .end local v7    # "dis":F
    .end local v9    # "f1":F
    .end local v10    # "f2":F
    .end local v11    # "f3":F
    .end local v12    # "f8":F
    .end local v13    # "f9":F
    .end local v14    # "i":I
    .end local v15    # "i1":I
    .end local v16    # "left":I
    .end local v17    # "mDegrees":F
    .end local v18    # "mFolderShadowDrawable":Landroid/graphics/drawable/GradientDrawable;
    .end local v19    # "mIsRTandLB":Z
    .end local v20    # "mMatrix":Landroid/graphics/Matrix;
    .end local v21    # "mMaxLength":F
    .end local v22    # "mPaint":Landroid/graphics/Paint;
    .end local v23    # "pageDrawables":Lrexsee/ebook/PageDrawables;
    .end local v24    # "path":Landroid/graphics/Path;
    .end local v25    # "right":I
    :catch_0
    move-exception v26

    move-object/from16 v8, v26

    .line 501
    .local v8, "e":Ljava/lang/Exception;
    const-string v26, "drawCurrentBackArea"

    invoke-virtual {v8}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v27

    move-object/from16 v0, p0

    move-object/from16 v1, v26

    move-object/from16 v2, v27

    invoke-direct {v0, v1, v2}, Lrexsee/ebook/PageView;->error(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 452
    .end local v8    # "e":Ljava/lang/Exception;
    .restart local v9    # "f1":F
    .restart local v10    # "f2":F
    .restart local v11    # "f3":F
    .restart local v14    # "i":I
    .restart local v15    # "i1":I
    .restart local v24    # "path":Landroid/graphics/Path;
    :cond_3
    const/16 v26, 0x0

    move/from16 v19, v26

    goto/16 :goto_1

    .line 459
    .restart local v19    # "mIsRTandLB":Z
    .restart local v23    # "pageDrawables":Lrexsee/ebook/PageDrawables;
    :cond_4
    :try_start_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    sub-float v26, v26, v11

    const/high16 v27, 0x3f800000    # 1.0f

    sub-float v26, v26, v27

    move/from16 v0, v26

    float-to-int v0, v0

    move/from16 v16, v0

    .line 460
    .restart local v16    # "left":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    const/high16 v27, 0x3f800000    # 1.0f

    add-float v26, v26, v27

    move/from16 v0, v26

    float-to-int v0, v0

    move/from16 v25, v0

    .line 461
    .restart local v25    # "right":I
    move-object/from16 v0, v23

    iget-object v0, v0, Lrexsee/ebook/PageDrawables;->folder_RL:Landroid/graphics/drawable/GradientDrawable;

    move-object/from16 v18, v0
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    .restart local v18    # "mFolderShadowDrawable":Landroid/graphics/drawable/GradientDrawable;
    goto/16 :goto_2

    .line 470
    :catch_1
    move-exception v26

    goto/16 :goto_4

    .line 466
    :catch_2
    move-exception v26

    goto/16 :goto_3
.end method

.method private drawCurrentPageArea(Landroid/graphics/Canvas;)V
    .locals 7
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 412
    iget-object v1, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    if-nez v1, :cond_0

    .line 432
    :goto_0
    return-void

    .line 414
    :cond_0
    :try_start_0
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    invoke-virtual {v1}, Landroid/graphics/Path;->reset()V

    .line 415
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    iget-object v2, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v3, 0x0

    aget-object v2, v2, v3

    iget-object v2, v2, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->x:F

    iget-object v3, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v4, 0x0

    aget-object v3, v3, v4

    iget-object v3, v3, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v3, v3, Landroid/graphics/PointF;->y:F

    invoke-virtual {v1, v2, v3}, Landroid/graphics/Path;->moveTo(FF)V

    .line 416
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    iget-object v2, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v3, 0x0

    aget-object v2, v2, v3

    iget-object v2, v2, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->x:F

    iget-object v3, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v4, 0x0

    aget-object v3, v3, v4

    iget-object v3, v3, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v3, v3, Landroid/graphics/PointF;->y:F

    iget-object v4, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v5, 0x0

    aget-object v4, v4, v5

    iget-object v4, v4, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    iget v4, v4, Landroid/graphics/PointF;->x:F

    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v6, 0x0

    aget-object v5, v5, v6

    iget-object v5, v5, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->y:F

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/graphics/Path;->quadTo(FFFF)V

    .line 417
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->x:F

    iget-object v3, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v3, v3, Landroid/graphics/PointF;->y:F

    invoke-virtual {v1, v2, v3}, Landroid/graphics/Path;->lineTo(FF)V

    .line 418
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    iget-object v2, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v3, 0x1

    aget-object v2, v2, v3

    iget-object v2, v2, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->x:F

    iget-object v3, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v4, 0x1

    aget-object v3, v3, v4

    iget-object v3, v3, Lrexsee/ebook/Bezier;->end:Landroid/graphics/PointF;

    iget v3, v3, Landroid/graphics/PointF;->y:F

    invoke-virtual {v1, v2, v3}, Landroid/graphics/Path;->lineTo(FF)V

    .line 419
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    iget-object v2, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v3, 0x1

    aget-object v2, v2, v3

    iget-object v2, v2, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->x:F

    iget-object v3, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v4, 0x1

    aget-object v3, v3, v4

    iget-object v3, v3, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v3, v3, Landroid/graphics/PointF;->y:F

    iget-object v4, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v5, 0x1

    aget-object v4, v4, v5

    iget-object v4, v4, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v4, v4, Landroid/graphics/PointF;->x:F

    iget-object v5, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v6, 0x1

    aget-object v5, v5, v6

    iget-object v5, v5, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v5, v5, Landroid/graphics/PointF;->y:F

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/graphics/Path;->quadTo(FFFF)V

    .line 420
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    iget-object v2, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v2, v2, Landroid/graphics/Point;->x:I

    int-to-float v2, v2

    iget-object v3, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v3, v3, Landroid/graphics/Point;->y:I

    int-to-float v3, v3

    invoke-virtual {v1, v2, v3}, Landroid/graphics/Path;->lineTo(FF)V

    .line 421
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    invoke-virtual {v1}, Landroid/graphics/Path;->close()V

    .line 422
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 424
    :try_start_1
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    sget-object v2, Landroid/graphics/Region$Op;->XOR:Landroid/graphics/Region$Op;

    invoke-virtual {p1, v1, v2}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;Landroid/graphics/Region$Op;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 427
    :goto_1
    :try_start_2
    iget-object v1, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {p1, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 428
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto/16 :goto_0

    .line 429
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 430
    .local v0, "e":Ljava/lang/Exception;
    const-string v1, "drawCurrentPageArea"

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v1, v2}, Lrexsee/ebook/PageView;->error(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 425
    .end local v0    # "e":Ljava/lang/Exception;
    :catch_1
    move-exception v1

    goto :goto_1
.end method

.method private drawCurrentPageShadow(Landroid/graphics/Canvas;)V
    .locals 31
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 506
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/Point;->x:I

    move/from16 v24, v0

    if-nez v24, :cond_0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/Point;->y:I

    move/from16 v24, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v25

    move/from16 v0, v24

    move/from16 v1, v25

    if-eq v0, v1, :cond_1

    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/Point;->x:I

    move/from16 v24, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v25

    move/from16 v0, v24

    move/from16 v1, v25

    if-ne v0, v1, :cond_2

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/Point;->y:I

    move/from16 v24, v0

    if-nez v24, :cond_2

    :cond_1
    const/16 v24, 0x1

    move/from16 v15, v24

    .line 507
    .local v15, "mIsRTandLB":Z
    :goto_0
    if-eqz v15, :cond_3

    const-wide v24, 0x3fe921fb54442d18L    # 0.7853981633974483

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    sub-float v26, v26, v27

    move/from16 v0, v26

    float-to-double v0, v0

    move-wide/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v28, v0

    move-object/from16 v0, v28

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v28, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v29, v0

    const/16 v30, 0x0

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v29, v0

    move-object/from16 v0, v29

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v29, v0

    sub-float v28, v28, v29

    move/from16 v0, v28

    float-to-double v0, v0

    move-wide/from16 v28, v0

    invoke-static/range {v26 .. v29}, Ljava/lang/Math;->atan2(DD)D

    move-result-wide v26

    sub-double v24, v24, v26

    move-wide/from16 v9, v24

    .line 508
    .local v9, "degree":D
    :goto_1
    const-wide v24, 0x4041accccccccccdL    # 35.35

    invoke-static {v9, v10}, Ljava/lang/Math;->cos(D)D

    move-result-wide v26

    mul-double v5, v24, v26

    .line 509
    .local v5, "d1":D
    const-wide v24, 0x4041accccccccccdL    # 35.35

    invoke-static {v9, v10}, Ljava/lang/Math;->sin(D)D

    move-result-wide v26

    mul-double v7, v24, v26

    .line 510
    .local v7, "d2":D
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move/from16 v0, v24

    float-to-double v0, v0

    move-wide/from16 v24, v0

    add-double v24, v24, v5

    move-wide/from16 v0, v24

    double-to-float v0, v0

    move/from16 v22, v0

    .line 511
    .local v22, "x":F
    if-eqz v15, :cond_4

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    move/from16 v0, v24

    float-to-double v0, v0

    move-wide/from16 v24, v0

    add-double v24, v24, v7

    move-wide/from16 v0, v24

    double-to-float v0, v0

    move/from16 v24, v0

    move/from16 v23, v24

    .line 512
    .local v23, "y":F
    :goto_2
    new-instance v18, Landroid/graphics/Path;

    invoke-direct/range {v18 .. v18}, Landroid/graphics/Path;-><init>()V

    .line 513
    .local v18, "path":Landroid/graphics/Path;
    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Path;->reset()V

    .line 514
    move-object/from16 v0, v18

    move/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    .line 515
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    move-object/from16 v0, v18

    move/from16 v1, v24

    move/from16 v2, v25

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 516
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x0

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x0

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    move-object/from16 v0, v18

    move/from16 v1, v24

    move/from16 v2, v25

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 517
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x0

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x0

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    move-object/from16 v0, v18

    move/from16 v1, v24

    move/from16 v2, v25

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 518
    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Path;->close()V

    .line 520
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 523
    :try_start_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    move-object/from16 v24, v0

    sget-object v25, Landroid/graphics/Region$Op;->XOR:Landroid/graphics/Region$Op;

    move-object/from16 v0, p1

    move-object/from16 v1, v24

    move-object/from16 v2, v25

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;Landroid/graphics/Region$Op;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_4

    .line 527
    :goto_3
    :try_start_2
    sget-object v24, Landroid/graphics/Region$Op;->INTERSECT:Landroid/graphics/Region$Op;

    move-object/from16 v0, p1

    move-object/from16 v1, v18

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;Landroid/graphics/Region$Op;)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3

    .line 532
    :goto_4
    :try_start_3
    new-instance v17, Lrexsee/ebook/PageDrawables;

    invoke-direct/range {v17 .. v17}, Lrexsee/ebook/PageDrawables;-><init>()V

    .line 534
    .local v17, "pageDrawables":Lrexsee/ebook/PageDrawables;
    if-eqz v15, :cond_5

    .line 535
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x0

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move/from16 v0, v24

    float-to-int v0, v0

    move v13, v0

    .line 536
    .local v13, "leftx":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x0

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move/from16 v0, v24

    float-to-int v0, v0

    move/from16 v24, v0

    add-int/lit8 v19, v24, 0x19

    .line 537
    .local v19, "rightx":I
    move-object/from16 v0, v17

    iget-object v0, v0, Lrexsee/ebook/PageDrawables;->front_VLR:Landroid/graphics/drawable/GradientDrawable;

    move-object v14, v0

    .line 544
    .local v14, "mCurrentPageShadow":Landroid/graphics/drawable/GradientDrawable;
    :goto_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x0

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v25, v0

    sub-float v24, v24, v25

    move/from16 v0, v24

    float-to-double v0, v0

    move-wide/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x0

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    sub-float v26, v26, v27

    move/from16 v0, v26

    float-to-double v0, v0

    move-wide/from16 v26, v0

    invoke-static/range {v24 .. v27}, Ljava/lang/Math;->atan2(DD)D

    move-result-wide v24

    invoke-static/range {v24 .. v25}, Ljava/lang/Math;->toDegrees(D)D

    move-result-wide v24

    move-wide/from16 v0, v24

    double-to-float v0, v0

    move/from16 v20, v0

    .line 545
    .local v20, "rotateDegrees":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x0

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x0

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    move-object/from16 v0, p1

    move/from16 v1, v20

    move/from16 v2, v24

    move/from16 v3, v25

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Canvas;->rotate(FFF)V

    .line 546
    invoke-virtual/range {p0 .. p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v24

    move/from16 v0, v24

    int-to-double v0, v0

    move-wide/from16 v24, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v26

    move/from16 v0, v26

    int-to-double v0, v0

    move-wide/from16 v26, v0

    invoke-static/range {v24 .. v27}, Ljava/lang/Math;->hypot(DD)D

    move-result-wide v24

    move-wide/from16 v0, v24

    double-to-float v0, v0

    move/from16 v16, v0

    .line 547
    .local v16, "mMaxLength":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x0

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    sub-float v24, v24, v16

    move/from16 v0, v24

    float-to-int v0, v0

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x0

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    move/from16 v0, v25

    float-to-int v0, v0

    move/from16 v25, v0

    move-object v0, v14

    move v1, v13

    move/from16 v2, v24

    move/from16 v3, v19

    move/from16 v4, v25

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/drawable/GradientDrawable;->setBounds(IIII)V

    .line 548
    move-object v0, v14

    move-object/from16 v1, p1

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/GradientDrawable;->draw(Landroid/graphics/Canvas;)V

    .line 549
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    .line 551
    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Path;->reset()V

    .line 552
    move-object/from16 v0, v18

    move/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    .line 553
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    move-object/from16 v0, v18

    move/from16 v1, v24

    move/from16 v2, v25

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 554
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x1

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    move-object/from16 v0, v18

    move/from16 v1, v24

    move/from16 v2, v25

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 555
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x1

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    move-object/from16 v0, v18

    move/from16 v1, v24

    move/from16 v2, v25

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 556
    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Path;->close()V

    .line 557
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    .line 559
    :try_start_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    move-object/from16 v24, v0

    sget-object v25, Landroid/graphics/Region$Op;->XOR:Landroid/graphics/Region$Op;

    move-object/from16 v0, p1

    move-object/from16 v1, v24

    move-object/from16 v2, v25

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;Landroid/graphics/Region$Op;)Z
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2

    .line 563
    :goto_6
    :try_start_5
    sget-object v24, Landroid/graphics/Region$Op;->INTERSECT:Landroid/graphics/Region$Op;

    move-object/from16 v0, p1

    move-object/from16 v1, v18

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;Landroid/graphics/Region$Op;)Z
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_1

    .line 566
    :goto_7
    if-eqz v15, :cond_6

    .line 567
    :try_start_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    move/from16 v0, v24

    float-to-int v0, v0

    move v13, v0

    .line 568
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    const/high16 v25, 0x41c80000    # 25.0f

    add-float v24, v24, v25

    move/from16 v0, v24

    float-to-int v0, v0

    move/from16 v19, v0

    .line 569
    move-object/from16 v0, v17

    iget-object v0, v0, Lrexsee/ebook/PageDrawables;->front_HTB:Landroid/graphics/drawable/GradientDrawable;

    move-object v14, v0

    .line 575
    :goto_8
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    sub-float v24, v24, v25

    move/from16 v0, v24

    float-to-double v0, v0

    move-wide/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v26, v0

    const/16 v27, 0x1

    aget-object v26, v26, v27

    move-object/from16 v0, v26

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v27, v0

    sub-float v26, v26, v27

    move/from16 v0, v26

    float-to-double v0, v0

    move-wide/from16 v26, v0

    invoke-static/range {v24 .. v27}, Ljava/lang/Math;->atan2(DD)D

    move-result-wide v24

    invoke-static/range {v24 .. v25}, Ljava/lang/Math;->toDegrees(D)D

    move-result-wide v24

    move-wide/from16 v0, v24

    double-to-float v0, v0

    move/from16 v20, v0

    .line 576
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x1

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v25, v0

    move-object/from16 v0, p1

    move/from16 v1, v20

    move/from16 v2, v24

    move/from16 v3, v25

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Canvas;->rotate(FFF)V

    .line 577
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    const/16 v25, 0x0

    cmpg-float v24, v24, v25

    if-gez v24, :cond_7

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v25

    move/from16 v0, v25

    int-to-float v0, v0

    move/from16 v25, v0

    sub-float v24, v24, v25

    move/from16 v21, v24

    .line 578
    .local v21, "temp":F
    :goto_9
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move/from16 v0, v24

    float-to-double v0, v0

    move-wide/from16 v24, v0

    move/from16 v0, v21

    float-to-double v0, v0

    move-wide/from16 v26, v0

    invoke-static/range {v24 .. v27}, Ljava/lang/Math;->hypot(DD)D

    move-result-wide v24

    move-wide/from16 v0, v24

    double-to-int v0, v0

    move v12, v0

    .line 579
    .local v12, "hmg":I
    move v0, v12

    int-to-float v0, v0

    move/from16 v24, v0

    cmpl-float v24, v24, v16

    if-lez v24, :cond_8

    .line 580
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    const/high16 v25, 0x41c80000    # 25.0f

    sub-float v24, v24, v25

    move/from16 v0, v24

    float-to-int v0, v0

    move/from16 v24, v0

    sub-int v24, v24, v12

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x1

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v25, v0

    add-float v25, v25, v16

    move/from16 v0, v25

    float-to-int v0, v0

    move/from16 v25, v0

    sub-int v25, v25, v12

    move-object v0, v14

    move/from16 v1, v24

    move v2, v13

    move/from16 v3, v25

    move/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/drawable/GradientDrawable;->setBounds(IIII)V

    .line 584
    :goto_a
    move-object v0, v14

    move-object/from16 v1, p1

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/GradientDrawable;->draw(Landroid/graphics/Canvas;)V

    .line 585
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    .line 589
    .end local v5    # "d1":D
    .end local v7    # "d2":D
    .end local v9    # "degree":D
    .end local v12    # "hmg":I
    .end local v13    # "leftx":I
    .end local v14    # "mCurrentPageShadow":Landroid/graphics/drawable/GradientDrawable;
    .end local v15    # "mIsRTandLB":Z
    .end local v16    # "mMaxLength":F
    .end local v17    # "pageDrawables":Lrexsee/ebook/PageDrawables;
    .end local v18    # "path":Landroid/graphics/Path;
    .end local v19    # "rightx":I
    .end local v20    # "rotateDegrees":F
    .end local v21    # "temp":F
    .end local v22    # "x":F
    .end local v23    # "y":F
    :goto_b
    return-void

    .line 506
    :cond_2
    const/16 v24, 0x0

    move/from16 v15, v24

    goto/16 :goto_0

    .line 507
    .restart local v15    # "mIsRTandLB":Z
    :cond_3
    const-wide v24, 0x3fe921fb54442d18L    # 0.7853981633974483

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v26, v0

    move-object/from16 v0, v26

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v27, v0

    const/16 v28, 0x0

    aget-object v27, v27, v28

    move-object/from16 v0, v27

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v27, v0

    sub-float v26, v26, v27

    move/from16 v0, v26

    float-to-double v0, v0

    move-wide/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v28, v0

    move-object/from16 v0, v28

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v28, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v29, v0

    const/16 v30, 0x0

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v29, v0

    move-object/from16 v0, v29

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v29, v0

    sub-float v28, v28, v29

    move/from16 v0, v28

    float-to-double v0, v0

    move-wide/from16 v28, v0

    invoke-static/range {v26 .. v29}, Ljava/lang/Math;->atan2(DD)D

    move-result-wide v26

    sub-double v24, v24, v26

    move-wide/from16 v9, v24

    goto/16 :goto_1

    .line 511
    .restart local v5    # "d1":D
    .restart local v7    # "d2":D
    .restart local v9    # "degree":D
    .restart local v22    # "x":F
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    move/from16 v0, v24

    float-to-double v0, v0

    move-wide/from16 v24, v0

    sub-double v24, v24, v7

    move-wide/from16 v0, v24

    double-to-float v0, v0

    move/from16 v24, v0

    move/from16 v23, v24

    goto/16 :goto_2

    .line 539
    .restart local v17    # "pageDrawables":Lrexsee/ebook/PageDrawables;
    .restart local v18    # "path":Landroid/graphics/Path;
    .restart local v23    # "y":F
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x0

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    const/high16 v25, 0x41c80000    # 25.0f

    sub-float v24, v24, v25

    move/from16 v0, v24

    float-to-int v0, v0

    move v13, v0

    .line 540
    .restart local v13    # "leftx":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x0

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    move/from16 v0, v24

    float-to-int v0, v0

    move/from16 v24, v0

    add-int/lit8 v19, v24, 0x1

    .line 541
    .restart local v19    # "rightx":I
    move-object/from16 v0, v17

    iget-object v0, v0, Lrexsee/ebook/PageDrawables;->front_VRL:Landroid/graphics/drawable/GradientDrawable;

    move-object v14, v0

    .restart local v14    # "mCurrentPageShadow":Landroid/graphics/drawable/GradientDrawable;
    goto/16 :goto_5

    .line 571
    .restart local v16    # "mMaxLength":F
    .restart local v20    # "rotateDegrees":F
    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    const/high16 v25, 0x41c80000    # 25.0f

    sub-float v24, v24, v25

    move/from16 v0, v24

    float-to-int v0, v0

    move v13, v0

    .line 572
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    const/high16 v25, 0x3f800000    # 1.0f

    add-float v24, v24, v25

    move/from16 v0, v24

    float-to-int v0, v0

    move/from16 v19, v0

    .line 573
    move-object/from16 v0, v17

    iget-object v0, v0, Lrexsee/ebook/PageDrawables;->front_HBT:Landroid/graphics/drawable/GradientDrawable;

    move-object v14, v0

    goto/16 :goto_8

    .line 577
    :cond_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v24, v0

    move/from16 v21, v24

    goto/16 :goto_9

    .line 582
    .restart local v12    # "hmg":I
    .restart local v21    # "temp":F
    :cond_8
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v24, v0

    const/16 v25, 0x1

    aget-object v24, v24, v25

    move-object/from16 v0, v24

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v24, v0

    move-object/from16 v0, v24

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v24, v0

    sub-float v24, v24, v16

    move/from16 v0, v24

    float-to-int v0, v0

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    move-object/from16 v25, v0

    const/16 v26, 0x1

    aget-object v25, v25, v26

    move-object/from16 v0, v25

    iget-object v0, v0, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v25, v0

    move/from16 v0, v25

    float-to-int v0, v0

    move/from16 v25, v0

    move-object v0, v14

    move/from16 v1, v24

    move v2, v13

    move/from16 v3, v25

    move/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/drawable/GradientDrawable;->setBounds(IIII)V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0

    goto/16 :goto_a

    .line 586
    .end local v5    # "d1":D
    .end local v7    # "d2":D
    .end local v9    # "degree":D
    .end local v12    # "hmg":I
    .end local v13    # "leftx":I
    .end local v14    # "mCurrentPageShadow":Landroid/graphics/drawable/GradientDrawable;
    .end local v15    # "mIsRTandLB":Z
    .end local v16    # "mMaxLength":F
    .end local v17    # "pageDrawables":Lrexsee/ebook/PageDrawables;
    .end local v18    # "path":Landroid/graphics/Path;
    .end local v19    # "rightx":I
    .end local v20    # "rotateDegrees":F
    .end local v21    # "temp":F
    .end local v22    # "x":F
    .end local v23    # "y":F
    :catch_0
    move-exception v24

    move-object/from16 v11, v24

    .line 587
    .local v11, "e":Ljava/lang/Exception;
    const-string v24, "drawCurrentPageShadow"

    invoke-virtual {v11}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v25

    move-object/from16 v0, p0

    move-object/from16 v1, v24

    move-object/from16 v2, v25

    invoke-direct {v0, v1, v2}, Lrexsee/ebook/PageView;->error(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_b

    .line 564
    .end local v11    # "e":Ljava/lang/Exception;
    .restart local v5    # "d1":D
    .restart local v7    # "d2":D
    .restart local v9    # "degree":D
    .restart local v13    # "leftx":I
    .restart local v14    # "mCurrentPageShadow":Landroid/graphics/drawable/GradientDrawable;
    .restart local v15    # "mIsRTandLB":Z
    .restart local v16    # "mMaxLength":F
    .restart local v17    # "pageDrawables":Lrexsee/ebook/PageDrawables;
    .restart local v18    # "path":Landroid/graphics/Path;
    .restart local v19    # "rightx":I
    .restart local v20    # "rotateDegrees":F
    .restart local v22    # "x":F
    .restart local v23    # "y":F
    :catch_1
    move-exception v24

    goto/16 :goto_7

    .line 560
    :catch_2
    move-exception v24

    goto/16 :goto_6

    .line 528
    .end local v13    # "leftx":I
    .end local v14    # "mCurrentPageShadow":Landroid/graphics/drawable/GradientDrawable;
    .end local v16    # "mMaxLength":F
    .end local v17    # "pageDrawables":Lrexsee/ebook/PageDrawables;
    .end local v19    # "rightx":I
    .end local v20    # "rotateDegrees":F
    :catch_3
    move-exception v24

    goto/16 :goto_4

    .line 524
    :catch_4
    move-exception v24

    goto/16 :goto_3
.end method

.method private drawNextPageAreaAndShadow(Landroid/graphics/Canvas;)V
    .locals 14
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 591
    iget-object v10, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    if-nez v10, :cond_0

    .line 637
    :goto_0
    return-void

    .line 593
    :cond_0
    :try_start_0
    new-instance v8, Landroid/graphics/Path;

    invoke-direct {v8}, Landroid/graphics/Path;-><init>()V

    .line 594
    .local v8, "path":Landroid/graphics/Path;
    invoke-virtual {v8}, Landroid/graphics/Path;->reset()V

    .line 595
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x0

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    iget-object v11, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v12, 0x0

    aget-object v11, v11, v12

    iget-object v11, v11, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v11, v11, Landroid/graphics/PointF;->y:F

    invoke-virtual {v8, v10, v11}, Landroid/graphics/Path;->moveTo(FF)V

    .line 596
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x0

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    iget-object v11, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v12, 0x0

    aget-object v11, v11, v12

    iget-object v11, v11, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    iget v11, v11, Landroid/graphics/PointF;->y:F

    invoke-virtual {v8, v10, v11}, Landroid/graphics/Path;->lineTo(FF)V

    .line 597
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x1

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    iget-object v11, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v12, 0x1

    aget-object v11, v11, v12

    iget-object v11, v11, Lrexsee/ebook/Bezier;->vertex:Landroid/graphics/PointF;

    iget v11, v11, Landroid/graphics/PointF;->y:F

    invoke-virtual {v8, v10, v11}, Landroid/graphics/Path;->lineTo(FF)V

    .line 598
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x1

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    iget-object v11, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v12, 0x1

    aget-object v11, v11, v12

    iget-object v11, v11, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v11, v11, Landroid/graphics/PointF;->y:F

    invoke-virtual {v8, v10, v11}, Landroid/graphics/Path;->lineTo(FF)V

    .line 599
    iget-object v10, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v10, v10, Landroid/graphics/Point;->x:I

    int-to-float v10, v10

    iget-object v11, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v11, v11, Landroid/graphics/Point;->y:I

    int-to-float v11, v11

    invoke-virtual {v8, v10, v11}, Landroid/graphics/Path;->lineTo(FF)V

    .line 600
    invoke-virtual {v8}, Landroid/graphics/Path;->close()V

    .line 602
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x0

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    iget-object v11, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v11, v11, Landroid/graphics/Point;->x:I

    int-to-float v11, v11

    sub-float/2addr v10, v11

    float-to-double v10, v10

    iget-object v12, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v13, 0x1

    aget-object v12, v12, v13

    iget-object v12, v12, Lrexsee/ebook/Bezier;->control:Landroid/graphics/PointF;

    iget v12, v12, Landroid/graphics/PointF;->y:F

    iget-object v13, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v13, v13, Landroid/graphics/Point;->y:I

    int-to-float v13, v13

    sub-float/2addr v12, v13

    float-to-double v12, v12

    invoke-static {v10, v11, v12, v13}, Ljava/lang/Math;->atan2(DD)D

    move-result-wide v10

    invoke-static {v10, v11}, Ljava/lang/Math;->toDegrees(D)D

    move-result-wide v10

    double-to-float v3, v10

    .line 605
    .local v3, "mDegrees":F
    iget-object v10, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v10, v10, Landroid/graphics/Point;->x:I

    if-nez v10, :cond_1

    iget-object v10, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v10, v10, Landroid/graphics/Point;->y:I

    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v11

    if-eq v10, v11, :cond_2

    :cond_1
    iget-object v10, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v10, v10, Landroid/graphics/Point;->x:I

    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v11

    if-ne v10, v11, :cond_3

    iget-object v10, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v10, v10, Landroid/graphics/Point;->y:I

    if-nez v10, :cond_3

    :cond_2
    const/4 v10, 0x1

    move v4, v10

    .line 606
    .local v4, "mIsRTandLB":Z
    :goto_1
    iget-object v10, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    iget-object v11, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v11, v11, Landroid/graphics/Point;->x:I

    int-to-float v11, v11

    sub-float/2addr v10, v11

    float-to-double v10, v10

    iget-object v12, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v12, v12, Landroid/graphics/PointF;->y:F

    iget-object v13, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v13, v13, Landroid/graphics/Point;->y:I

    int-to-float v13, v13

    sub-float/2addr v12, v13

    float-to-double v12, v12

    invoke-static {v10, v11, v12, v13}, Ljava/lang/Math;->hypot(DD)D

    move-result-wide v10

    double-to-float v6, v10

    .line 608
    .local v6, "mTouchToCornerDis":F
    new-instance v7, Lrexsee/ebook/PageDrawables;

    invoke-direct {v7}, Lrexsee/ebook/PageDrawables;-><init>()V

    .line 609
    .local v7, "pageDrawables":Lrexsee/ebook/PageDrawables;
    if-eqz v4, :cond_4

    .line 610
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x0

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    float-to-int v1, v10

    .line 611
    .local v1, "leftx":I
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x0

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    const/high16 v11, 0x40800000    # 4.0f

    div-float v11, v6, v11

    add-float/2addr v10, v11

    float-to-int v9, v10

    .line 612
    .local v9, "rightx":I
    iget-object v2, v7, Lrexsee/ebook/PageDrawables;->back_LR:Landroid/graphics/drawable/GradientDrawable;

    .line 618
    .local v2, "mBackShadowDrawable":Landroid/graphics/drawable/GradientDrawable;
    :goto_2
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 620
    :try_start_1
    iget-object v10, p0, Lrexsee/ebook/PageView;->mPath:Landroid/graphics/Path;

    invoke-virtual {p1, v10}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    .line 624
    :goto_3
    :try_start_2
    sget-object v10, Landroid/graphics/Region$Op;->INTERSECT:Landroid/graphics/Region$Op;

    invoke-virtual {p1, v8, v10}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;Landroid/graphics/Region$Op;)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 627
    :goto_4
    :try_start_3
    iget-object v10, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    const/4 v11, 0x0

    const/4 v12, 0x0

    const/4 v13, 0x0

    invoke-virtual {p1, v10, v11, v12, v13}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 628
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x0

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    iget-object v11, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v12, 0x0

    aget-object v11, v11, v12

    iget-object v11, v11, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v11, v11, Landroid/graphics/PointF;->y:F

    invoke-virtual {p1, v3, v10, v11}, Landroid/graphics/Canvas;->rotate(FFF)V

    .line 629
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v10

    int-to-double v10, v10

    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v12

    int-to-double v12, v12

    invoke-static {v10, v11, v12, v13}, Ljava/lang/Math;->hypot(DD)D

    move-result-wide v10

    double-to-float v5, v10

    .line 630
    .local v5, "mMaxLength":F
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x0

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->y:F

    float-to-int v10, v10

    iget-object v11, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v12, 0x0

    aget-object v11, v11, v12

    iget-object v11, v11, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v11, v11, Landroid/graphics/PointF;->y:F

    add-float/2addr v11, v5

    float-to-int v11, v11

    invoke-virtual {v2, v1, v10, v9, v11}, Landroid/graphics/drawable/GradientDrawable;->setBounds(IIII)V

    .line 631
    invoke-virtual {v2, p1}, Landroid/graphics/drawable/GradientDrawable;->draw(Landroid/graphics/Canvas;)V

    .line 632
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    goto/16 :goto_0

    .line 633
    .end local v1    # "leftx":I
    .end local v2    # "mBackShadowDrawable":Landroid/graphics/drawable/GradientDrawable;
    .end local v3    # "mDegrees":F
    .end local v4    # "mIsRTandLB":Z
    .end local v5    # "mMaxLength":F
    .end local v6    # "mTouchToCornerDis":F
    .end local v7    # "pageDrawables":Lrexsee/ebook/PageDrawables;
    .end local v8    # "path":Landroid/graphics/Path;
    .end local v9    # "rightx":I
    :catch_0
    move-exception v10

    move-object v0, v10

    .line 634
    .local v0, "e":Ljava/lang/Exception;
    const-string v10, "drawNextPageAreaAndShadow"

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v11

    invoke-direct {p0, v10, v11}, Lrexsee/ebook/PageView;->error(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 605
    .end local v0    # "e":Ljava/lang/Exception;
    .restart local v3    # "mDegrees":F
    .restart local v8    # "path":Landroid/graphics/Path;
    :cond_3
    const/4 v10, 0x0

    move v4, v10

    goto/16 :goto_1

    .line 614
    .restart local v4    # "mIsRTandLB":Z
    .restart local v6    # "mTouchToCornerDis":F
    .restart local v7    # "pageDrawables":Lrexsee/ebook/PageDrawables;
    :cond_4
    :try_start_4
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x0

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    const/high16 v11, 0x40800000    # 4.0f

    div-float v11, v6, v11

    sub-float/2addr v10, v11

    float-to-int v1, v10

    .line 615
    .restart local v1    # "leftx":I
    iget-object v10, p0, Lrexsee/ebook/PageView;->bezier:[Lrexsee/ebook/Bezier;

    const/4 v11, 0x0

    aget-object v10, v10, v11

    iget-object v10, v10, Lrexsee/ebook/Bezier;->start:Landroid/graphics/PointF;

    iget v10, v10, Landroid/graphics/PointF;->x:F

    float-to-int v9, v10

    .line 616
    .restart local v9    # "rightx":I
    iget-object v2, v7, Lrexsee/ebook/PageDrawables;->back_RL:Landroid/graphics/drawable/GradientDrawable;
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    .restart local v2    # "mBackShadowDrawable":Landroid/graphics/drawable/GradientDrawable;
    goto/16 :goto_2

    .line 625
    :catch_1
    move-exception v10

    goto :goto_4

    .line 621
    :catch_2
    move-exception v10

    goto/16 :goto_3
.end method

.method private error(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .param p1, "src"    # Ljava/lang/String;
    .param p2, "message"    # Ljava/lang/String;

    .prologue
    .line 85
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "PageView."

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ":"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 86
    return-void
.end method

.method private getCross(Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;)Landroid/graphics/PointF;
    .locals 8
    .param p1, "P1"    # Landroid/graphics/PointF;
    .param p2, "P2"    # Landroid/graphics/PointF;
    .param p3, "P3"    # Landroid/graphics/PointF;
    .param p4, "P4"    # Landroid/graphics/PointF;

    .prologue
    .line 640
    new-instance v0, Landroid/graphics/PointF;

    invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V

    .line 642
    .local v0, "CrossP":Landroid/graphics/PointF;
    iget v5, p2, Landroid/graphics/PointF;->y:F

    iget v6, p1, Landroid/graphics/PointF;->y:F

    sub-float/2addr v5, v6

    iget v6, p2, Landroid/graphics/PointF;->x:F

    iget v7, p1, Landroid/graphics/PointF;->x:F

    sub-float/2addr v6, v7

    div-float v1, v5, v6

    .line 643
    .local v1, "a1":F
    iget v5, p1, Landroid/graphics/PointF;->x:F

    iget v6, p2, Landroid/graphics/PointF;->y:F

    mul-float/2addr v5, v6

    iget v6, p2, Landroid/graphics/PointF;->x:F

    iget v7, p1, Landroid/graphics/PointF;->y:F

    mul-float/2addr v6, v7

    sub-float/2addr v5, v6

    iget v6, p1, Landroid/graphics/PointF;->x:F

    iget v7, p2, Landroid/graphics/PointF;->x:F

    sub-float/2addr v6, v7

    div-float v3, v5, v6

    .line 644
    .local v3, "b1":F
    iget v5, p4, Landroid/graphics/PointF;->y:F

    iget v6, p3, Landroid/graphics/PointF;->y:F

    sub-float/2addr v5, v6

    iget v6, p4, Landroid/graphics/PointF;->x:F

    iget v7, p3, Landroid/graphics/PointF;->x:F

    sub-float/2addr v6, v7

    div-float v2, v5, v6

    .line 645
    .local v2, "a2":F
    iget v5, p3, Landroid/graphics/PointF;->x:F

    iget v6, p4, Landroid/graphics/PointF;->y:F

    mul-float/2addr v5, v6

    iget v6, p4, Landroid/graphics/PointF;->x:F

    iget v7, p3, Landroid/graphics/PointF;->y:F

    mul-float/2addr v6, v7

    sub-float/2addr v5, v6

    iget v6, p3, Landroid/graphics/PointF;->x:F

    iget v7, p4, Landroid/graphics/PointF;->x:F

    sub-float/2addr v6, v7

    div-float v4, v5, v6

    .line 646
    .local v4, "b2":F
    sub-float v5, v4, v3

    sub-float v6, v1, v2

    div-float/2addr v5, v6

    iput v5, v0, Landroid/graphics/PointF;->x:F

    .line 647
    iget v5, v0, Landroid/graphics/PointF;->x:F

    mul-float/2addr v5, v1

    add-float/2addr v5, v3

    iput v5, v0, Landroid/graphics/PointF;->y:F

    .line 648
    return-object v0
.end method


# virtual methods
.method public abortAnimation()V
    .locals 1

    .prologue
    .line 297
    iget-object v0, p0, Lrexsee/ebook/PageView;->mScroller:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-nez v0, :cond_0

    .line 298
    iget-object v0, p0, Lrexsee/ebook/PageView;->mScroller:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->abortAnimation()V

    .line 300
    :cond_0
    return-void
.end method

.method public clear()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 108
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    if-eqz v0, :cond_0

    .line 109
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v0}, Lrexsee/ebook/PageFactory;->clear()V

    .line 110
    iput-object v1, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    .line 112
    :cond_0
    iput-object v1, p0, Lrexsee/ebook/PageView;->mData:Ljava/lang/String;

    .line 113
    const/4 v0, 0x0

    iput v0, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    .line 114
    const/4 v0, -0x1

    iput v0, p0, Lrexsee/ebook/PageView;->loadingIndex:I

    .line 115
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->postInvalidate()V

    .line 116
    return-void
.end method

.method public computeScroll()V
    .locals 8

    .prologue
    .line 237
    iget-object v3, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    if-nez v3, :cond_1

    .line 256
    :cond_0
    :goto_0
    return-void

    .line 238
    :cond_1
    invoke-super {p0}, Landroid/view/View;->computeScroll()V

    .line 240
    :try_start_0
    iget-object v3, p0, Lrexsee/ebook/PageView;->mScroller:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->computeScrollOffset()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 241
    iget-object v3, p0, Lrexsee/ebook/PageView;->mScroller:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->getCurrX()I

    move-result v3

    int-to-float v1, v3

    .line 242
    .local v1, "x":F
    iget-object v3, p0, Lrexsee/ebook/PageView;->mScroller:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->getCurrY()I

    move-result v3

    int-to-float v2, v3

    .line 243
    .local v2, "y":F
    iget-object v3, p0, Lrexsee/ebook/PageView;->mScroller:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->getFinalX()I

    move-result v3

    int-to-float v3, v3

    cmpl-float v3, v3, v1

    if-nez v3, :cond_2

    iget-object v3, p0, Lrexsee/ebook/PageView;->mScroller:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->getFinalY()I

    move-result v3

    int-to-float v3, v3

    cmpl-float v3, v3, v2

    if-nez v3, :cond_2

    .line 244
    iget-object v3, p0, Lrexsee/ebook/PageView;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v4, "onFliped"

    const/4 v5, 0x3

    new-array v5, v5, [Ljava/lang/String;

    const/4 v6, 0x0

    iget-object v7, p0, Lrexsee/ebook/PageView;->mId:Ljava/lang/String;

    aput-object v7, v5, v6

    const/4 v6, 0x1

    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getPageIndex()I

    move-result v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    aput-object v7, v5, v6

    const/4 v6, 0x2

    iget-object v7, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v7}, Lrexsee/ebook/PageFactory;->getTotal()I

    move-result v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    aput-object v7, v5, v6

    invoke-virtual {v3, v4, v5}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    .line 245
    iget-object v3, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    const/high16 v4, -0x3d380000    # -100.0f

    iput v4, v3, Landroid/graphics/PointF;->x:F

    .line 250
    :goto_1
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->postInvalidate()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 253
    .end local v1    # "x":F
    .end local v2    # "y":F
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 254
    .local v0, "e":Ljava/lang/Exception;
    const-string v3, "computeScroll"

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v4

    invoke-direct {p0, v3, v4}, Lrexsee/ebook/PageView;->error(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 247
    .end local v0    # "e":Ljava/lang/Exception;
    .restart local v1    # "x":F
    .restart local v2    # "y":F
    :cond_2
    :try_start_1
    iget-object v3, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iput v1, v3, Landroid/graphics/PointF;->x:F

    .line 248
    iget-object v3, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iput v2, v3, Landroid/graphics/PointF;->y:F
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1
.end method

.method public destroy()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 652
    iget-object v0, p0, Lrexsee/ebook/PageView;->mLoadingPageBitmap:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    .line 653
    iget-object v0, p0, Lrexsee/ebook/PageView;->mLoadingPageBitmap:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 654
    iput-object v1, p0, Lrexsee/ebook/PageView;->mLoadingPageBitmap:Landroid/graphics/Bitmap;

    .line 656
    :cond_0
    iget-object v0, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_1

    .line 657
    iget-object v0, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 658
    iput-object v1, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    .line 660
    :cond_1
    iget-object v0, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_2

    .line 661
    iget-object v0, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 662
    iput-object v1, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    .line 664
    :cond_2
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    if-eqz v0, :cond_3

    .line 665
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v0}, Lrexsee/ebook/PageFactory;->destroy()V

    .line 666
    iput-object v1, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    .line 668
    :cond_3
    invoke-static {}, Ljava/lang/System;->gc()V

    .line 669
    return-void
.end method

.method public getData()Ljava/lang/String;
    .locals 1

    .prologue
    .line 104
    iget-object v0, p0, Lrexsee/ebook/PageView;->mData:Ljava/lang/String;

    return-object v0
.end method

.method public getPageIndex()I
    .locals 1

    .prologue
    .line 155
    iget v0, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    return v0
.end method

.method public getPageIndexes()Ljava/lang/String;
    .locals 6

    .prologue
    .line 185
    iget-object v4, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v4}, Lrexsee/ebook/PageFactory;->getPages()Ljava/util/ArrayList;

    move-result-object v2

    .line 186
    .local v2, "pages":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lrexsee/ebook/Page;>;"
    const-string v3, ""

    .line 187
    .local v3, "rtn":Ljava/lang/String;
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v0, v4, :cond_0

    .line 194
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "["

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "]"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    return-object v4

    .line 188
    :cond_0
    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lrexsee/ebook/Page;

    .line 189
    .local v1, "page":Lrexsee/ebook/Page;
    iget-object v4, v1, Lrexsee/ebook/Page;->indexTitle:Ljava/lang/String;

    if-eqz v4, :cond_2

    .line 190
    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_1

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 191
    :cond_1
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "{\"page\":"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    add-int/lit8 v5, v0, 0x1

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ",\"title\":\""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, v1, Lrexsee/ebook/Page;->indexTitle:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\"}"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 187
    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public getPageTitle()Ljava/lang/String;
    .locals 1

    .prologue
    .line 163
    iget v0, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    invoke-virtual {p0, v0}, Lrexsee/ebook/PageView;->getPageTitle(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getPageTitle(I)Ljava/lang/String;
    .locals 7
    .param p1, "index"    # I

    .prologue
    const-string v6, "\""

    const-string v5, ""

    .line 166
    iget-object v3, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v3}, Lrexsee/ebook/PageFactory;->getPages()Ljava/util/ArrayList;

    move-result-object v1

    .line 167
    .local v1, "pages":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lrexsee/ebook/Page;>;"
    if-ltz p1, :cond_0

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lt p1, v3, :cond_1

    :cond_0
    const-string v3, ""

    move-object v3, v5

    .line 176
    :goto_0
    return-object v3

    .line 168
    :cond_1
    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/ebook/Page;

    .line 169
    .local v0, "page":Lrexsee/ebook/Page;
    const-string v2, ""

    .line 170
    .local v2, "rtn":Ljava/lang/String;
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "{"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 171
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "\"page\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget v4, v0, Lrexsee/ebook/Page;->index:I

    add-int/lit8 v4, v4, 0x1

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 172
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"title\":\""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, v0, Lrexsee/ebook/Page;->indexTitle:Ljava/lang/String;

    if-nez v4, :cond_2

    const-string v4, ""

    move-object v4, v5

    :goto_1
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\""

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 173
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"inheriteTitle\":\""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, v0, Lrexsee/ebook/Page;->inheriteTitle:Ljava/lang/String;

    if-nez v4, :cond_3

    const-string v4, ""

    move-object v4, v5

    :goto_2
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\""

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 174
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"total\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 175
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "}"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    move-object v3, v2

    .line 176
    goto/16 :goto_0

    .line 172
    :cond_2
    iget-object v4, v0, Lrexsee/ebook/Page;->indexTitle:Ljava/lang/String;

    goto :goto_1

    .line 173
    :cond_3
    iget-object v4, v0, Lrexsee/ebook/Page;->inheriteTitle:Ljava/lang/String;

    goto :goto_2
.end method

.method public getPageTotal()I
    .locals 1

    .prologue
    .line 158
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    if-nez v0, :cond_0

    const/4 v0, -0x1

    .line 159
    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v0}, Lrexsee/ebook/PageFactory;->getTotal()I

    move-result v0

    goto :goto_0
.end method

.method public load(Ljava/lang/String;I)V
    .locals 2
    .param p1, "data"    # Ljava/lang/String;
    .param p2, "startIndex"    # I

    .prologue
    .line 90
    iput-object p1, p0, Lrexsee/ebook/PageView;->mData:Ljava/lang/String;

    .line 91
    iput p2, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    .line 92
    const/4 v0, 0x1

    iput-boolean v0, p0, Lrexsee/ebook/PageView;->loadingNull:Z

    .line 94
    new-instance v0, Lrexsee/ebook/PageFactory;

    iget-object v1, p0, Lrexsee/ebook/PageView;->mStyle:Lrexsee/core/style/StyleSheet;

    invoke-direct {v0, p0, v1}, Lrexsee/ebook/PageFactory;-><init>(Lrexsee/ebook/PageView;Lrexsee/core/style/StyleSheet;)V

    iput-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    .line 95
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    const-string v1, "Loading......"

    invoke-virtual {v0, v1}, Lrexsee/ebook/PageFactory;->getLoadingBitmap(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lrexsee/ebook/PageView;->mLoadingPageBitmap:Landroid/graphics/Bitmap;

    .line 96
    iget-object v0, p0, Lrexsee/ebook/PageView;->mLoadingPageBitmap:Landroid/graphics/Bitmap;

    iput-object v0, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    .line 97
    iget-object v0, p0, Lrexsee/ebook/PageView;->mLoadingPageBitmap:Landroid/graphics/Bitmap;

    iput-object v0, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    .line 98
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->postInvalidate()V

    .line 100
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v0, p1}, Lrexsee/ebook/PageFactory;->parse(Ljava/lang/String;)V

    .line 102
    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 7
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 215
    :try_start_0
    iget-object v2, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    if-nez v2, :cond_1

    .line 234
    :cond_0
    :goto_0
    return-void

    .line 216
    :cond_1
    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->x:F

    const/high16 v3, -0x3d380000    # -100.0f

    cmpl-float v2, v2, v3

    if-nez v2, :cond_2

    .line 217
    iget-object v2, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    iget v3, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    invoke-virtual {v2, v3}, Lrexsee/ebook/PageFactory;->getPage(I)Landroid/graphics/Bitmap;

    move-result-object v2

    iput-object v2, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    .line 218
    iget-object v2, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual {p1, v2, v3, v4, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 219
    const/4 v2, 0x0

    iput-boolean v2, p0, Lrexsee/ebook/PageView;->loadingNull:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 231
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 232
    .local v0, "e":Ljava/lang/Exception;
    const-string v2, "onDraw"

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, v2, v3}, Lrexsee/ebook/PageView;->error(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 222
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_2
    :try_start_1
    sget-object v2, Lrexsee/ebook/PageView;->mPageBack:Landroid/graphics/drawable/Drawable;

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v5

    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v6

    invoke-virtual {v2, v3, v4, v5, v6}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 223
    sget-object v2, Lrexsee/ebook/PageView;->mPageBack:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 224
    invoke-direct {p0}, Lrexsee/ebook/PageView;->calcPoints()V

    .line 225
    invoke-direct {p0, p1}, Lrexsee/ebook/PageView;->drawCurrentPageArea(Landroid/graphics/Canvas;)V

    .line 226
    invoke-direct {p0, p1}, Lrexsee/ebook/PageView;->drawNextPageAreaAndShadow(Landroid/graphics/Canvas;)V

    .line 227
    invoke-direct {p0, p1}, Lrexsee/ebook/PageView;->drawCurrentPageShadow(Landroid/graphics/Canvas;)V

    .line 228
    invoke-direct {p0, p1}, Lrexsee/ebook/PageView;->drawCurrentBackArea(Landroid/graphics/Canvas;)V

    .line 229
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getRootView()Landroid/view/View;

    move-result-object v1

    .line 230
    .local v1, "root":Landroid/view/View;
    if-eqz v1, :cond_0

    invoke-virtual {v1, p0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {v1}, Landroid/view/View;->postInvalidate()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public reload()V
    .locals 3

    .prologue
    .line 119
    :try_start_0
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    if-nez v1, :cond_1

    .line 129
    :cond_0
    :goto_0
    return-void

    .line 120
    :cond_1
    iget v1, p0, Lrexsee/ebook/PageView;->loadingIndex:I

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lrexsee/ebook/PageView;->loadingIndex:I

    .line 121
    iget-boolean v1, p0, Lrexsee/ebook/PageView;->loadingNull:Z

    if-eqz v1, :cond_0

    iget v1, p0, Lrexsee/ebook/PageView;->loadingIndex:I

    iget v2, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    if-lt v1, v2, :cond_0

    .line 122
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    iget v2, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    invoke-virtual {v1, v2}, Lrexsee/ebook/PageFactory;->getPage(I)Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    .line 123
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->postInvalidate()V

    .line 124
    const/4 v1, 0x0

    iput-boolean v1, p0, Lrexsee/ebook/PageView;->loadingNull:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 126
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 127
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/ebook/PageView;->mBrowser:Lrexsee/core/browser/Browser;

    const-string v2, "PageView.reload"

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method public search(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 1
    .param p1, "text"    # Ljava/lang/String;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/ArrayList",
            "<",
            "Lrexsee/ebook/Page;",
            ">;"
        }
    .end annotation

    .prologue
    .line 180
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 181
    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v0, p1}, Lrexsee/ebook/PageFactory;->searchText(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    goto :goto_0
.end method

.method public searchText(Ljava/lang/String;)Ljava/lang/String;
    .locals 8
    .param p1, "text"    # Ljava/lang/String;

    .prologue
    const-string v7, "\""

    const-string v6, ""

    .line 197
    invoke-virtual {p0, p1}, Lrexsee/ebook/PageView;->search(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v2

    .line 198
    .local v2, "pages":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lrexsee/ebook/Page;>;"
    if-eqz v2, :cond_0

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-nez v4, :cond_1

    :cond_0
    const-string v4, "[]"

    .line 209
    :goto_0
    return-object v4

    .line 199
    :cond_1
    const-string v3, ""

    .line 200
    .local v3, "rtn":Ljava/lang/String;
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v0, v4, :cond_2

    .line 209
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "["

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "]"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_0

    .line 201
    :cond_2
    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lrexsee/ebook/Page;

    .line 202
    .local v1, "page":Lrexsee/ebook/Page;
    const-string v4, ""

    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_3

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 203
    :cond_3
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "{"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 204
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "\"page\":"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget v5, v1, Lrexsee/ebook/Page;->index:I

    add-int/lit8 v5, v5, 0x1

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 205
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ",\"title\":\""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, v1, Lrexsee/ebook/Page;->indexTitle:Ljava/lang/String;

    if-nez v5, :cond_4

    const-string v5, ""

    move-object v5, v6

    :goto_2
    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\""

    invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 206
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ",\"inheriteTitle\":\""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, v1, Lrexsee/ebook/Page;->inheriteTitle:Ljava/lang/String;

    if-nez v5, :cond_5

    const-string v5, ""

    move-object v5, v6

    :goto_3
    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\""

    invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 207
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "}"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 200
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_1

    .line 205
    :cond_4
    iget-object v5, v1, Lrexsee/ebook/Page;->indexTitle:Ljava/lang/String;

    goto :goto_2

    .line 206
    :cond_5
    iget-object v5, v1, Lrexsee/ebook/Page;->inheriteTitle:Ljava/lang/String;

    goto :goto_3
.end method

.method public setPageIndex(I)V
    .locals 3
    .param p1, "index"    # I

    .prologue
    .line 131
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    if-nez v1, :cond_1

    .line 153
    :cond_0
    :goto_0
    return-void

    .line 132
    :cond_1
    if-ltz p1, :cond_0

    .line 133
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v1}, Lrexsee/ebook/PageFactory;->isLoading()Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v1}, Lrexsee/ebook/PageFactory;->getTotal()I

    move-result v1

    if-ge p1, v1, :cond_0

    .line 134
    :cond_2
    iget v1, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    if-eq p1, v1, :cond_0

    .line 136
    :try_start_0
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->abortAnimation()V

    .line 137
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    iget v2, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    invoke-virtual {v1, v2}, Lrexsee/ebook/PageFactory;->getPage(I)Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, p0, Lrexsee/ebook/PageView;->mCurPageBitmap:Landroid/graphics/Bitmap;

    .line 138
    iget-object v1, p0, Lrexsee/ebook/PageView;->mPageFactory:Lrexsee/ebook/PageFactory;

    invoke-virtual {v1, p1}, Lrexsee/ebook/PageFactory;->getPage(I)Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    .line 139
    iget-object v1, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    if-nez v1, :cond_3

    .line 140
    iget-object v1, p0, Lrexsee/ebook/PageView;->mLoadingPageBitmap:Landroid/graphics/Bitmap;

    iput-object v1, p0, Lrexsee/ebook/PageView;->mNextPageBitmap:Landroid/graphics/Bitmap;

    .line 141
    const/4 v1, 0x1

    iput-boolean v1, p0, Lrexsee/ebook/PageView;->loadingNull:Z

    .line 143
    :cond_3
    iget v1, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    if-le p1, v1, :cond_4

    .line 144
    const/4 v1, 0x1

    const/16 v2, 0x4b0

    invoke-virtual {p0, v1, v2}, Lrexsee/ebook/PageView;->startAnimation(II)V

    .line 148
    :goto_1
    iput p1, p0, Lrexsee/ebook/PageView;->mPageIndex:I

    .line 149
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->postInvalidate()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 150
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 151
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/ebook/PageView;->mBrowser:Lrexsee/core/browser/Browser;

    const-string v2, "PageView.setPageIndex"

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0

    .line 146
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_4
    const/4 v1, 0x2

    const/16 v2, 0x4b0

    :try_start_1
    invoke-virtual {p0, v1, v2}, Lrexsee/ebook/PageView;->startAnimation(II)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1
.end method

.method public startAnimation(I)V
    .locals 9
    .param p1, "duration"    # I

    .prologue
    const v2, 0x3dcccccd    # 0.1f

    .line 261
    :try_start_0
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v8

    .line 262
    .local v8, "mWidth":I
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v7

    .line 263
    .local v7, "mHeight":I
    iget-object v0, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v0, v0, Landroid/graphics/Point;->x:I

    if-lez v0, :cond_0

    int-to-float v0, v8

    iget-object v1, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v1, v1, Landroid/graphics/PointF;->x:F

    add-float/2addr v0, v1

    sub-float/2addr v0, v2

    float-to-int v0, v0

    neg-int v0, v0

    move v3, v0

    .line 264
    .local v3, "dx":I
    :goto_0
    iget-object v0, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget v0, v0, Landroid/graphics/Point;->y:I

    if-lez v0, :cond_1

    int-to-float v0, v7

    iget-object v1, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v1, v1, Landroid/graphics/PointF;->y:F

    sub-float/2addr v0, v1

    sub-float/2addr v0, v2

    float-to-int v0, v0

    move v4, v0

    .line 265
    .local v4, "dy":I
    :goto_1
    iget-object v0, p0, Lrexsee/ebook/PageView;->mScroller:Landroid/widget/Scroller;

    iget-object v1, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v1, v1, Landroid/graphics/PointF;->x:F

    float-to-int v1, v1

    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->y:F

    float-to-int v2, v2

    move v5, p1

    invoke-virtual/range {v0 .. v5}, Landroid/widget/Scroller;->startScroll(IIIII)V

    .line 269
    .end local v3    # "dx":I
    .end local v4    # "dy":I
    .end local v7    # "mHeight":I
    .end local v8    # "mWidth":I
    :goto_2
    return-void

    .line 263
    .restart local v7    # "mHeight":I
    .restart local v8    # "mWidth":I
    :cond_0
    int-to-float v0, v8

    iget-object v1, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v1, v1, Landroid/graphics/PointF;->x:F

    sub-float/2addr v0, v1

    int-to-float v1, v8

    add-float/2addr v0, v1

    sub-float/2addr v0, v2

    float-to-int v0, v0

    move v3, v0

    goto :goto_0

    .line 264
    .restart local v3    # "dx":I
    :cond_1
    const/high16 v0, 0x3f800000    # 1.0f

    iget-object v1, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v1, v1, Landroid/graphics/PointF;->y:F
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    sub-float/2addr v0, v1

    sub-float/2addr v0, v2

    float-to-int v0, v0

    move v4, v0

    goto :goto_1

    .line 266
    .end local v3    # "dx":I
    .end local v7    # "mHeight":I
    .end local v8    # "mWidth":I
    :catch_0
    move-exception v0

    move-object v6, v0

    .line 267
    .local v6, "e":Ljava/lang/Exception;
    const-string v0, "startAnimation"

    invoke-virtual {v6}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v0, v1}, Lrexsee/ebook/PageView;->error(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2
.end method

.method public startAnimation(II)V
    .locals 7
    .param p1, "direction"    # I
    .param p2, "duration"    # I

    .prologue
    const/4 v6, 0x0

    const/high16 v5, 0x40000000    # 2.0f

    const/high16 v4, 0x40400000    # 3.0f

    .line 271
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->abortAnimation()V

    .line 272
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getWidth()I

    move-result v1

    .line 273
    .local v1, "w":I
    invoke-virtual {p0}, Lrexsee/ebook/PageView;->getHeight()I

    move-result v0

    .line 274
    .local v0, "h":I
    packed-switch p1, :pswitch_data_0

    .line 288
    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    int-to-float v3, v1

    mul-float/2addr v3, v5

    div-float/2addr v3, v4

    iput v3, v2, Landroid/graphics/PointF;->x:F

    .line 289
    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    int-to-float v3, v0

    div-float/2addr v3, v4

    iput v3, v2, Landroid/graphics/PointF;->y:F

    .line 292
    :goto_0
    iget-object v2, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget-object v3, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v3, v3, Landroid/graphics/PointF;->x:F

    div-int/lit8 v4, v1, 0x2

    int-to-float v4, v4

    cmpg-float v3, v3, v4

    if-gtz v3, :cond_0

    move v3, v6

    :goto_1
    iput v3, v2, Landroid/graphics/Point;->x:I

    .line 293
    iget-object v2, p0, Lrexsee/ebook/PageView;->mCorner:Landroid/graphics/Point;

    iget-object v3, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    iget v3, v3, Landroid/graphics/PointF;->y:F

    div-int/lit8 v4, v0, 0x2

    int-to-float v4, v4

    cmpg-float v3, v3, v4

    if-gtz v3, :cond_1

    move v3, v6

    :goto_2
    iput v3, v2, Landroid/graphics/Point;->y:I

    .line 294
    invoke-virtual {p0, p2}, Lrexsee/ebook/PageView;->startAnimation(I)V

    .line 295
    return-void

    .line 276
    :pswitch_0
    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    int-to-float v3, v1

    mul-float/2addr v3, v5

    div-float/2addr v3, v4

    iput v3, v2, Landroid/graphics/PointF;->x:F

    .line 277
    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    int-to-float v3, v0

    mul-float/2addr v3, v5

    div-float/2addr v3, v4

    iput v3, v2, Landroid/graphics/PointF;->y:F

    goto :goto_0

    .line 280
    :pswitch_1
    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    int-to-float v3, v1

    div-float/2addr v3, v4

    iput v3, v2, Landroid/graphics/PointF;->x:F

    .line 281
    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    int-to-float v3, v0

    mul-float/2addr v3, v5

    div-float/2addr v3, v4

    iput v3, v2, Landroid/graphics/PointF;->y:F

    goto :goto_0

    .line 284
    :pswitch_2
    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    int-to-float v3, v1

    div-float/2addr v3, v4

    iput v3, v2, Landroid/graphics/PointF;->x:F

    .line 285
    iget-object v2, p0, Lrexsee/ebook/PageView;->mTouch:Landroid/graphics/PointF;

    int-to-float v3, v0

    div-float/2addr v3, v4

    iput v3, v2, Landroid/graphics/PointF;->y:F

    goto :goto_0

    :cond_0
    move v3, v1

    .line 292
    goto :goto_1

    :cond_1
    move v3, v0

    .line 293
    goto :goto_2

    .line 274
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
